package com.vodone.v1pin.navigator.delegate
{
	
	import com.vodone.v1pin.ServiceProvider;
	import com.vodone.v1pin.core.service.HttpJsonDelegate;
	
	import mx.rpc.http.mxml.HTTPService;
	
	[Bindable]
	public class NavigatorDelegate
	{
		
		public static const MAIN:String = "main";
		public static const INDEXNAV:String = "indexNav";
		public static const SMALLNAV:String = "smallNav";
		  
		public static function getNavigator( resultHandler:Function , type:String = "main" , faultHandler:Function = null , context:Array = null ):void
		{
			var service:HTTPService = ServiceProvider.getInstance().getNavListService;
			var params:Object = {
				type : type
			}
			
			var delegate:HttpJsonDelegate = new HttpJsonDelegate( service );
			delegate.send( params , resultHandler , faultHandler , context );
		}
	}
}